package com.itheima.mapper;

import com.itheima.pojo.dto.employeeDto.EmployeeAddDto;
import com.itheima.pojo.dto.employeeDto.EmployeeUpdateDto;
import com.itheima.pojo.vo.employeeVo.EmployeeFindByIdVo;
import com.itheima.pojo.vo.employeeVo.EmployeeLoginVo;
import com.itheima.pojo.vo.employeeVo.EmployeePageVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface EmployeeMapper {
    int add(EmployeeAddDto employeeAddDto);
      EmployeeLoginVo selectByUsername(String username);

    int update(EmployeeUpdateDto employeeUpdateDto);

    EmployeeFindByIdVo selectById(String id);
    List<EmployeePageVo> selectByPage(int page, int pageSize, String name);

}
